import Mock from 'mockjs'


const data = Mock.mock({
  'tabs|10': [{
    'title': '@ctitle(2,4)',
    'id': '@id',
    'children|10-20': [{
      'url': '@image(100x100,@color)',
      'desc': '@cword(10,20)',
      'name': '@cname',
      'id': '@id',
    }]
  }]
})


Mock.mock('/api/tabs', 'post', () => {
  return {
    code: 200,
    data: data.tabs
  }
})